package com.hwl.demo4;

import com.hwl.demo4.entity.SchoolGirl;
import com.hwl.demo4.service.impl.Proxy;

/**
 * 代理模式
 * 代理初始化的过程，实际是 被代理对象 初始化的过程
 *
 * @author sentry
 * @since 2023-03-18
 */
public class Main {

    public static void main(String[] args) {
        SchoolGirl girlLjj = new SchoolGirl("李娇娇");

        Proxy boyDl = new Proxy(girlLjj);
        boyDl.giveDolls();
        boyDl.giveFlowers();
        boyDl.giveChocolate();
    }
}
